package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 市级管理对象 city
 * 
 * @author ruoyi
 * @date 2024-09-19
 */
public class City extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 城市编码 */
    @Excel(name = "城市编码")
    private Long cityIndex;

    /** 省级id */
    @Excel(name = "省级id")
    private Long provinceId;

    /** 城市名 */
    @Excel(name = "城市名")
    private String name;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCityIndex(Long cityIndex) 
    {
        this.cityIndex = cityIndex;
    }

    public Long getCityIndex() 
    {
        return cityIndex;
    }
    public void setProvinceId(Long provinceId) 
    {
        this.provinceId = provinceId;
    }

    public Long getProvinceId() 
    {
        return provinceId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cityIndex", getCityIndex())
            .append("provinceId", getProvinceId())
            .append("name", getName())
            .toString();
    }
}
